#include <iostream>
#include <string>
using namespace std;

int main(){
	
	string s;
	getline(cin,s);
	string res[200];
	int index = 0;
	int falg = 0;
	for(int i = 0;i < s.size();i++){
		if(s[i] == 34){
			if(falg == 0){
				falg = 1;
			}else{
				falg = 0;
			}
			continue;
		}
		if(s[i] != 32 && falg == 0){
			res[index] += s[i]; 
		}
		if(s[i] == 32 && falg == 0){
			res[index] += '\0';
			index++;
		}
		if(falg == 1){
			res[index] += s[i];
		}
	}
	cout<<index + 1<<endl;
	for(int i = 0;i <= index;i++){
		cout<<res[i]<<endl;
	}
	
	return 0;
}
